package com.api.shopapi.service;


import com.api.shopapi.entity.Government;
import com.api.shopapi.entity.dto.GovernmentDTO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GovernmentService {

    int insert(Government government);

    int deleteByGovernmentCode(String governmentCode);

    int updateByGovernmentCode(Government government);

    Government getByGovernmentCode(String governmentCode);

    List<Government> getList();

    PageInfo<GovernmentDTO> getPageInfoDTO(int pageIndex, int pageSize);


    List<Government> getAllGovernmentCode();


    List<Government> getByCity(String city);

    List<Government> getNormalGovernment();


}
